package com.example.exam;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ViewItemActivity extends Activity{
       public void onCreate(Bundle savedInstanceState){
    	   super.onCreate(savedInstanceState);
    	   setContentView(R.layout.view1_item);
    	   Button button;
    	   OnClickListener listener=null;
    	   listener = new OnClickListener() { 
   			public void onClick(View view) {
   				Intent intent = new Intent(ViewItemActivity.this, ShareActivity.class);
   				startActivity(intent);
   			}
   		
    		   
    	   };
    	   
   		button=(Button)findViewById(R.id.sharebtn);
   		button.setOnClickListener(listener);
       }
}
